package com.clever.mall.service;

import com.clever.mall.commons.dto.SearchRequestParam;
import com.clever.mall.entity.Search;
import com.clever.mall.vo.SearchVo;

import java.util.List;

public interface SearchService {
    //查找所有用户的搜索数高的前8条
    public List<SearchVo> findAllSearch();
    //超找用户的搜索关键字前8条
    public List<SearchVo> findByUserId(int userId);
    //删除用户的搜索记录
    public int deleteByUserId(int userId);
    //增加搜索关键字
    public int addWords(SearchRequestParam requestParam);
    //判断关键字是否已存在
    public Search findByWord(String word);
    //更改关键字搜索次数
    public int modifyCount(Search search);
}
